package com.pro.schedule.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pro.schedule.entity.Memo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;

@Mapper
public interface MemoMapper extends BaseMapper<Memo> {
    @Select("select * from memo  where user_id = #{userId} and memo_date = #{memoDate}")
    IPage<Memo> selectMemoByUserId(Page<Memo> page, Long userId, LocalDate memoDate);
}
